package com.xsir.service.impl;

import com.xsir.entity.Category;
import com.xsir.mapper.CategoryMapper;
import com.xsir.service.ICategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xsir
 * @since 2020-11-03
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {
    @Resource
    private CategoryMapper categoryMapper;
    
    @Override
    public Category getByArticle(Integer articleId) {
        return categoryMapper.selectByArticle(articleId);
    }
}
